<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <script src="../../../../scripts/boot.js" type="text/javascript"></script>
    <script src="../../../../scripts/jquery.min.js" type="text/javascript"></script>
    <script src="../../../../scripts/miniui/miniui.js" type="text/javascript"></script>
    <script src="../../js/action.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.10.3.custom.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
    <script src="../../js/xinyuansu.js"></script>

    <link href="../../css/base/jquery.ui.all.css" rel="stylesheet"type="text/css"/>
    <link href="../../css/main.css" rel="stylesheet"type="text/css"/>
</head>
<body>

<div class="mini-splitter" style="width:100%;height:400px;" id="sp"
     onresize="resize" oncollapse="resize" onexpand="resize">
    <div size="36%" showCollapseButton="true">
        <div id="form-outlookbar" class="mini-outlookbar form-outlookbar" expandOnLoad="true"  activeIndex="0" style="width:auto;height:100%;" autoCollapse="true">
            <div title="主表" class="mainTable" >
                <div id="tableClass" class="mini-treegrid" style="overflow: auto;height:180px;"
                     url="" showTreeIcon="true" onSelectionChanged="onSelectionChanged"
                     treeColumn="tableChClassName" idField="tableClassId" parentField="PID" expandOnLoad="false"
                     resultAsTree="false" showCheckBox="false" checkRecursive="true" showFolderCheckBox="false"
                >
                    <div property="columns">
                        <div type="indexcolumn"></div>
                        <div field="tableChClassName" name="tableChClassName">数据库表名</div>
                        <div field="fieldCh" >字段(中文)</div>
                        <div field="field"  >字段(英文)</div>
                    </div>
                </div>
            </div>
            <div title="子表" class="childTable">
                <div id="tableClass_child" class="mini-treegrid" style="overflow: auto;height:180px;"
                     url="" showTreeIcon="true" resultAsTree="false" expandOnLoad="false"
                     treeColumn="tableChClassName"  idField="tableClassId" parentField="pid"
                     showCheckBox="false" checkRecursive="true" showFolderCheckBox="false"
                >
                    <div property="columns">
                        <!--name="tableChClassName"  treeColumn="tableChClassName"-->
                        <div type="indexcolumn"></div>
                        <div field="tableChClassName" name="tableChClassName">数据库表名</div>
                        <div field="fieldCh" >字段(中文)</div>
                        <div field="field"  >字段(英文)</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div showCollapseButton="true">
        <div id="layout1" class="mini-layout" style="width:100%;height:400px;">
            <div title="公式" region="west" headerAlign="center" showCollapseButton="false"
                showHeader="true" width="180" maxWidth="200" minWidth="100" >
                <ul id="tree1" class="mini-tree" style="width:100%;height:calc(100% - 100px);display: inline-block;"
                    idField="id" parentField="pid" url="../../data/mathTree.txt"
                    showTreeIcon="true" textField="text" resultAsTree="false" expandOnLoad="0"
                ></ul>
            </div>
            <div title="" region="center" headerAlign="center" showCollapseButton="false"
                 showHeader="false" width="200" maxWidth="350" minWidth="100">
                <div id="toolbar1" class="mini-toolbar" style="padding:0px;">
                    <table style="width:100%;">
                        <tr>
                            <td style="width:100%;">
                                <!--<span class="separator"></span>-->
                                <a class="mini-button" onclick="insertAtCursor('+',false);insertAtCursorEng('级联',false)">+</a>
                                <a class="mini-button" onclick="insertAtCursor('-',false);insertAtCursorEng('级联',false)">-</a>
                                <a class="mini-button" onclick="insertAtCursor('×',false);insertAtCursorEng('级联',false)">×</a>
                                <a class="mini-button" onclick="insertAtCursor('÷',false);insertAtCursorEng('级联',false)">÷</a>
                                <a class="mini-button" onclick="insertAtCursor('>',false);insertAtCursorEng('级联',false)">></a>
                                <a class="mini-button" onclick="insertAtCursor('<',false);insertAtCursorEng('级联',false)"><</a>
                                <a class="mini-button" onclick="insertAtCursor('=',false);insertAtCursorEng('级联',false)">=</a>
                                <a class="mini-button" onclick="insertAtCursor('(',false);insertAtCursorEng('级联',false)">(</a>
                                <a class="mini-button" onclick="insertAtCursor(')',false);insertAtCursorEng('级联',false)">)</a>
                                <a class="mini-button" onclick="insertAtCursor('拼接',false);insertAtCursorEng('级联',false)">拼接</a>
                                <a class="mini-button" onclick="insertAtCursor('关联',false);insertAtCursorEng('级联',false)">关联</a>
                                <a class="mini-button" onclick="insertAtCursor('级联',false);insertAtCursorEng('级联',false)">级联</a>
                                <a class="mini-button" onclick="insertAtCursor('单据编号规则:',false);insertAtCursorEng('级联',false)">单据编号规则</a>
                                <a class="mini-button" onclick="insertAtCursor('findTableSum()',false);insertAtCursorEng('级联',false)">跨表求和</a>
                                <a class="mini-button" onclick="insertAtCursor('if(){}',false);insertAtCursorEng('级联',false)">if判断</a>
                            </td>
                        </tr>
                    </table>
                </div>
                <!-- onValuechanged="onValuechanged"  -->
                <textarea id="textarea" style="width: calc(100% - 1px); height: 248px;border:1px solid #f2f5f7;font-size: 16px;resize:none;" ></textarea>
            </div>
            <div title="注释" region="south" height="80" headerAlign="center" showCollapseButton="false">
                <label id="remark" style="display:inline-block;margin-top: 10px;"></label>
            </div>
        </div>
    </div>
</div>
<div style="text-align:center;padding:10px;">
    <a class="mini-button" onclick="onOk" style="width:60px;margin-right:20px;">确定</a>
    <a class="mini-button" onclick="onCancel" style="width:60px;">取消</a>
</div>
</body>
<script src="../../js/formDesign/setMath.js"></script>
</html>

